package modele;

public class FonctionAOptimiser3D
{
	private float x1,x2,x3;
	private boolean optimiser; // true -> Maximiser | false -> Minimiser
	
	public FonctionAOptimiser3D(float x1,float x2,float x3,boolean optimiser)
	{
		this.x1 = x1;
		this.x2 = x2;
		this.x3 = x3;
		this.optimiser = optimiser;
	}
	
	public float getX1()
	{
		return x1;
	}
	
	public float getX2()
	{
		return x2;
	}
	
	public float getX3()
	{
		return x3;
	}
	
	public String getVariable(String var)
	{
		float f = 0;
		if(var.equals("x1"))
		{
			f = x1;
		}
		if(var.equals("x2"))
		{
			f = x2;
		}
		if(var.equals("x3"))
		{
			f = x3;
		}
		return Float.toString(f);
	}
	
	public boolean getOptimiser()
	{
		return optimiser;
	}
}
